package com.gusha.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.DynamicInsert;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Entity
@Table(name="sys_processing")
@NamedQuery(name="SysProcessing.findAll", query="SELECT s FROM SysProcessing s")
@DynamicInsert
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SysProcessing implements Serializable {
	
	 private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private BigInteger id;//

	@Column(name = "processing_name")
	private String processingName;// 加工产品名称

	@Column(name = "processing_img")
	private String processingImg;// 加工产品图片

	@Column(name = "processing_desc")
	private String processingDesc;// 加工产品描述

	@Column(name = "processing_price")
	private BigDecimal processingPrice;// 加工产品价格

	@Column(name = "processing_num")
	private BigInteger processingNum;// 库存数量

	@Column(name = "processing_info")
	private String processingInfo;// 商品详情

	@Column(name = "trade_num")
	private BigInteger tradeNum;// 交易数量
	
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "add_time")
	private Date addTime;// 上架时间
	
	@Column(name = "is_delete")
	private BigInteger isDelete;

	public BigInteger getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(BigInteger isDelete) {
		this.isDelete = isDelete;
	}

	public BigInteger getId() {
		return id;
	}

	public void setId(BigInteger id) {
		this.id = id;
	}

	public String getProcessingName() {
		return processingName;
	}

	public void setProcessingName(String processingName) {
		this.processingName = processingName;
	}

	public String getProcessingImg() {
		return processingImg;
	}

	public void setProcessingImg(String processingImg) {
		this.processingImg = processingImg;
	}

	public String getProcessingDesc() {
		return processingDesc;
	}

	public void setProcessingDesc(String processingDesc) {
		this.processingDesc = processingDesc;
	}

	public BigDecimal getProcessingPrice() {
		return processingPrice;
	}

	public void setProcessingPrice(BigDecimal processingPrice) {
		this.processingPrice = processingPrice;
	}

	public BigInteger getProcessingNum() {
		return processingNum;
	}

	public void setProcessingNum(BigInteger processingNum) {
		this.processingNum = processingNum;
	}

	public String getProcessingInfo() {
		return processingInfo;
	}

	public void setProcessingInfo(String processingInfo) {
		this.processingInfo = processingInfo;
	}

	public BigInteger getTradeNum() {
		return tradeNum;
	}

	public void setTradeNum(BigInteger tradeNum) {
		this.tradeNum = tradeNum;
	}

	public java.util.Date getAddTime() {
		return addTime;
	}

	public void setAddTime(java.util.Date addTime) {
		this.addTime = addTime;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

}
